
export default {
  path: '/plugin',
  component: () => import("@/layout/index.vue"),
  alwaysShow: true,
  name: 'Plugin',
  meta: {
    title: '组件',
    icon: 'plugin',
  },
  children: [
    {
      path: '/chart',
      component: () => import('@/views/plugin/chart/index.vue'),
      name: 'Chart',
      meta: {
        title: 'chart',
      }
    },
    {
      path: '/form',
      component: () => import('@/views/plugin/form/index.vue'),
      name: 'Form',
      meta: {
        title: '表单',
      },
    },
    {
      path: '/table',
      component: () => import('@/views/plugin/table/index.vue'),
      name: 'Table',
      meta: {
        title: '表格',
        keepAlive: true
      },
    },
    {
      path: '/table/detail',
      component: () => import('@/views/plugin/table/detail/index.vue'),
      name: 'TableDetail',
      meta: {
        hidden: true,
        title: '表格详情',
        keepAlive: true
      },
    },
    {
      path: '/table/detail/sub1',
      component: () => import('@/views/plugin/table/detail/sub1/index.vue'),
      name: 'TableDetailSub1',
      meta: {
        hidden: true,
        title: '表格详情',
      },
    },
    {
      path: '/menu1',
      component: () => import('@/views/plugin/menu1/index.vue'),
      redirect: "/list",
      name: 'Menu1',
      meta: {
        title: '二级菜单',
      },
      children: [
        {
          path: '/list',
          component: () => import('@/views/plugin/menu1/list/index.vue'),
          name: 'List',
          meta: {
            title: '三级菜单:vue-keep-alive',
            keepAlive: true,
          }
        },
        {
          path: '/list/detail',
          component: () => import('@/views/plugin/menu1/detail/index.vue'),
          name: 'ListDetail',
          meta: {
            hidden: true,
            title: 'detail',
          }
        }
      ]
    },
  ]
}
